package com.shop.dingdongshoppingapi.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (TOrder)表实体类
 *
 * @author makejava
 * @since 2022-07-05 20:33:08
 */
@SuppressWarnings("serial")
@Data
@TableName("t_order")
@NoArgsConstructor
public class Order {

    @TableId(type = IdType.AUTO)
    private Integer id;
    //订单编号
    private String did;
    //用户地址
    private Integer uid;
    //地址id
    private Integer addid;
    //商品id
    private Integer gid;
    //商品数量
    private Integer num;
    //创建订单时间
    private Date ctime;

    private String info;

    private Integer gprice;

    private String gname;

    private String gimage;


    public Order(String did, String gname,String gimage,Integer uid, Integer addid, Integer gid, Integer gnum,String info,Integer gprice, Date ctime) {
        this.did = did;
        this.gname = gname;
        this.uid = uid;
        this.addid = addid;
        this.gid = gid;
        this.gimage = gimage;
        this.num = gnum;
        this.info = info;
        this.gprice =gprice;
        this.ctime = ctime;
    }
}

